home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11450 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: ix.netcom.com!netnews
  2. From: jlilley@ix.netcom.com (John Lilley)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: NEWBIE: Compilation of header file requested ???
  5. Date: 14 Mar 1996 17:26:56 GMT
  6. Organization: Netcom
  7. Distribution: world
  8. Message-ID: <4i9kt0$2m1@cloner3.netcom.com>
  9. References: <4hv9qa$jqk@msunews.cl.msu.edu>
  10. NNTP-Posting-Host: den-co7-20.ix.netcom.com
  11. Mime-Version: 1.0
  12. Content-Type: Text/Plain; charset=US-ASCII
  13. X-NETCOM-Date: Thu Mar 14  9:26:56 AM PST 1996
  14. X-Newsreader: WinVN 0.99.7
  15.  
  16. In article <4hv9qa$jqk@msunews.cl.msu.edu>, brian@wintermute says...
  17. >
  18. >I have been using GCC under linux to write my first C++ program under the WPE
  19. >programmers editor.  Things have been going fine for a few weeks, until 
  20. suddenlyI get the following error from GCC:
  21. >
  22. > gcc -c -g /home/brian/pentai/Board.h -o ./Board.o
  23. >gcc: Compilation of header file requested
  24. >
  25.  
  26. By convention, files ending with '.h' are header files that define
  27. functions and classes.  Files ending with '.c' or '.cpp', etc contain
  28. the body of the code.  Sounds like you put your code into a header file,
  29. which is no big deal, but unusual.
  30.  
  31. john lilley
  32.  
  33.